<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:t="http://myfaces.apache.org/tomahawk"
      xmlns:ui="http://java.sun.com/jsf/facelets">
      
	<body>
		<ui:composition template="/WEB-INF/templates/template.xhtml">
			<ui:define name="content">
				<h2>Veterinarians:</h2>
				<h:dataTable value="#{veterinarianDirectory.directory}" var="veterinarian">
					<h:column>
						<f:facet name="header">Name</f:facet>
						<h:outputText value="#{veterinarian.firstName}" />
						<h:outputText value=" " />
						<h:outputText value="#{veterinarian.lastName}" />
					</h:column>
					<h:column>
						<f:facet name="header">Specialties</f:facet>
						<h:outputText value="none" rendered="#{empty veterinarian.specialties}" />
						<t:dataList var="specialty" value="#{veterinarian.specialties}" rowCountVar="count" rowIndexVar="index">
							<h:outputText value="#{specialty}" />
							<h:outputText value=" " rendered="#{index + 1 lt count}" />
						</t:dataList>
					</h:column>
				</h:dataTable>
			</ui:define>
		</ui:composition>
	</body>
</html>